home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
amos
/
64 colours.amos
/
64 colours.amosSourceCode
Wrap
AMOS Source Code
|
1995-03-16
|
9KB
|
263 lines
Screen Open 2,350,300,64,Lowres
Screen Display 2,118,40,350,300
Limit Mouse 118,40 To 450,300
Curs Off : Flash Off
Cls 0 : Pen(1) : Paper 0
Colour 0,$0 : Colour 1,$FFF : Colour 2,$DC8 : Colour 3,$ED5
Colour 4,$DCB : Colour 5,$DC8 : Colour 6,$88F : Colour 7,$AAF
Colour 8,$CCF : Colour 9,$DDF : Colour 10,$EEF : Colour 11,$80
Colour 12,$A0 : Colour 13,$C0 : Colour 14,$E0 : Colour 15,$F0
Colour 16,$F00 : Colour 17,$F45 : Colour 18,$F88 : Colour 19,$FBB
Colour 20,$F8F : Colour 21,$FAF : Colour 22,$FBF : Colour 23,$FCF
Colour 24,$FF0 : Colour 25,$DD0 : Colour 26,$888 : Colour 27,$AAA
Colour 28,$BBB : Colour 29,$CCC : Colour 30,$DDD : Colour 31,$EEE
Pen 1 : Paper 0
Locate 1,2 : Centre "INSTRUCTIONS"
Locate 2,4 : Print "Select colour from menu and press on"
Locate 2,5 : Print "colour you want to alter."
Locate 2,6 : Print "Use sliders to change the colour and"
Locate 2,7 : Print "when satisfied press on exit."
Locate 2,9 : Print "You can only alter colours up to 31."
Locate 2,10 : Print "Colours above 31 are automatically "
Locate 2,11 : Print "altered when colours below 31 are"
Locate 2,12 : Print "altered."
Locate 2,13 : Print "E.G.To alter colour 34 simply alter"
Locate 2,14 : Print "colour 2 and both 2 and 34 will be"
Locate 2,15 : Print "changed."
Locate 2,17 : Print "To Exit from any slider press"
Locate 2,18 : Print "outside the slider Box"
Locate 2,28 : Input "PRESS RETURN TO CONTINUE";A$
Cls 0
Ink 0 : Bar 0,8 To 26,28 : Ink 1 : Bar 30,8 To 56,28
Ink 2 : Bar 60,8 To 86,28 : Ink 3 : Bar 90,8 To 116,28
Ink 4 : Bar 120,8 To 146,28 : Ink 5 : Bar 150,8 To 176,28
Ink 6 : Bar 180,8 To 206,28 : Ink 7 : Bar 210,8 To 236,28
Ink 8 : Bar 240,8 To 266,28 : Ink 9 : Bar 270,8 To 296,28
Ink 10 : Bar 300,8 To 326,28
Locate 2,4 : Print "0 1 2 3 4 5 6 7 8 9 10 "
Ink 11 : Bar 0,41 To 26,61 : Ink 12 : Bar 30,41 To 56,61
Ink 13 : Bar 60,41 To 86,61 : Ink 14 : Bar 90,41 To 116,61
Ink 15 : Bar 120,41 To 146,61 : Ink 16 : Bar 150,41 To 176,61
Ink 17 : Bar 180,41 To 206,61 : Ink 18 : Bar 210,41 To 236,61
Ink 19 : Bar 240,41 To 266,61 : Ink 20 : Bar 270,41 To 296,61
Ink 21 : Bar 300,41 To 326,61
Locate 1,8 : Print "11 12 13 14 15 16 17 18 19 20 21"
Ink 22 : Bar 0,74 To 26,94 : Ink 23 : Bar 30,74 To 56,94
Ink 24 : Bar 60,74 To 86,94 : Ink 25 : Bar 90,74 To 116,94
Ink 26 : Bar 120,74 To 146,94 : Ink 27 : Bar 150,74 To 176,94
Ink 28 : Bar 180,74 To 206,94 : Ink 29 : Bar 210,74 To 236,94
Ink 30 : Bar 240,74 To 266,94 : Ink 31 : Bar 270,74 To 296,94
Ink 32 : Bar 300,74 To 326,94
Locate 1,12 : Print "22 23 24 25 26 27 28 29 30 31 32"
Ink 33 : Bar 0,104 To 26,124 : Ink 34 : Bar 30,104 To 56,124
Ink 35 : Bar 60,104 To 86,124 : Ink 36 : Bar 90,104 To 116,124
Ink 37 : Bar 120,104 To 146,124 : Ink 38 : Bar 150,104 To 176,124
Ink 39 : Bar 180,104 To 206,124 : Ink 40 : Bar 210,104 To 236,124
Ink 41 : Bar 240,104 To 266,124 : Ink 42 : Bar 270,104 To 296,124
Ink 43 : Bar 300,104 To 326,124
Locate 1,16 : Print "33 34 35 36 37 38 39 40 41 42 43"
Ink 44 : Bar 0,136 To 26,156 : Ink 45 : Bar 30,136 To 56,156
Ink 46 : Bar 60,136 To 86,156 : Ink 47 : Bar 90,136 To 116,156
Ink 48 : Bar 120,136 To 146,156 : Ink 49 : Bar 150,136 To 176,156
Ink 50 : Bar 180,136 To 206,156 : Ink 51 : Bar 210,136 To 236,156
Ink 52 : Bar 240,136 To 266,156 : Ink 53 : Bar 270,136 To 296,156
Ink 54 : Bar 300,136 To 326,156
Locate 1,20 : Print "44 45 46 47 48 49 50 51 52 53 54"
Ink 55 : Bar 0,168 To 26,188 : Ink 56 : Bar 30,167 To 56,188
Ink 57 : Bar 60,168 To 86,188 : Ink 58 : Bar 90,168 To 116,188
Ink 59 : Bar 120,168 To 146,188 : Ink 60 : Bar 150,168 To 176,188
Ink 61 : Bar 180,168 To 206,188 : Ink 62 : Bar 210,168 To 236,188
Ink 63 : Bar 240,168 To 266,188
Locate 1,24 : Print "55 56 57 58 59 60 61 62 63"
Ink 1 : Box 10,220 To 100,230 : Ink 1 : Box 102,220 To 192,230
Ink 1 : Box 194,220 To 284,230
Ink 1 : Box 300,220 To 320,230
Locate 37,26 : Print "Exit"
Locate 5,29 : Print "Red"
Locate 16,29 : Print "Green"
Locate 28,29 : Print "Blue"
ST:
Menu$(1)="Select"
Menu$(1,1)="Colour"
Menu$(1,2)=" "
Menu$(1,3)="Quit"
On Menu Proc TITLE1
On Menu On
Menu On
Wait Key
Procedure TITLE1
On Choice(2) Gosub CO,,ED
On Menu On
End Proc
ED:
Cls 0
Edit
Return
CO:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If X>300 and Y>220 and Y<230 Then Goto SQ
Locate 1,26 : Print Space$(20)
Locate 1,26 : Print "Colour";C
Locate 10,26 : Print ",$"
Gosub DK : Gosub CH
Goto CO
SQ:
Ink 0 : Bar 300,220 To 320,230
Wait 10
Ink 1 : Bar 300,220 To 320,230
Goto ST
SA:
Ink 0 : Bar 300,220 To 320,230
Wait 10
Ink 1 : Bar 300,220 To 320,230
Goto ST
DK:
If X>0 and X<27 and Y>7 and Y<27 Then C=0
If X>30 and X<56 and Y>7 and Y<27 Then C=1
If X>60 and X<86 and Y>7 and Y<27 Then C=2
If X>90 and X<116 and Y>7 and Y<27 Then C=3
If X>120 and X<146 and Y>7 and Y<27 Then C=4
If X>150 and X<176 and Y>7 and Y<27 Then C=5
If X>180 and X<206 and Y>7 and Y<27 Then C=6
If X>210 and X<236 and Y>7 and Y<27 Then C=7
If X>240 and X<266 and Y>7 and Y<27 Then C=8
If X>270 and X<296 and Y>7 and Y<27 Then C=9
If X>300 and X<326 and Y>7 and Y<27 Then C=10
If X>0 and X<27 and Y>40 and Y<60 Then C=11
If X>30 and X<56 and Y>40 and Y<60 Then C=12
If X>60 and X<86 and Y>40 and Y<60 Then C=13
If X>90 and X<116 and Y>40 and Y<60 Then C=14
If X>120 and X<146 and Y>40 and Y<60 Then C=15
If X>150 and X<176 and Y>40 and Y<60 Then C=16
If X>180 and X<206 and Y>40 and Y<60 Then C=17
If X>210 and X<236 and Y>40 and Y<60 Then C=18
If X>240 and X<266 and Y>40 and Y<60 Then C=19
If X>270 and X<296 and Y>40 and Y<60 Then C=20
If X>300 and X<326 and Y>40 and Y<60 Then C=21
If X>0 and X<27 and Y>74 and Y<94 Then C=22
If X>30 and X<56 and Y>74 and Y<94 Then C=23
If X>60 and X<86 and Y>74 and Y<94 Then C=24
If X>90 and X<116 and Y>74 and Y<94 Then C=25
If X>120 and X<146 and Y>74 and Y<94 Then C=26
If X>150 and X<176 and Y>74 and Y<94 Then C=27
If X>180 and X<206 and Y>74 and Y<94 Then C=28
If X>210 and X<236 and Y>74 and Y<94 Then C=29
If X>240 and X<266 and Y>74 and Y<94 Then C=30
If X>270 and X<296 and Y>74 and Y<94 Then C=31
If Y>94 Then Goto CO
Locate 1,26 : Print Space$(20)
Locate 1,26 : Print "Colour";C
Locate 10,26 : Print ",$"
Return
CH:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If X>10 and X<100 and Y>220 and Y<230 Then Goto R1
If X>102 and X<192 and Y>220 and Y<230 Then Goto G1
If X>194 and X<284 and Y>220 and Y<230 Then Goto B1
If X>300 and Y>220 and Y<230 Then Goto SQ
Goto CH
R1:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If Y<220 Then Goto CH
If Y>230 Then Goto CH
If X<20 Then Goto R1
If X>92 Then Goto G1
Ink 0 : Bar 12,221 To X,229
Wait 5
Ink 1 : Bar X,221 To X+2,229
Wait 5
Ink 0 : Bar X+2,221 To 95,229
X1=(93-X)/5
Gosub HR
Colour(C),R+G+B
Goto R1
G1:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If Y<220 Then Goto CH
If X<105 Then Goto G1
If X>185 Then Goto B1
If Y>230 Then Goto CH
Ink 0 : Bar 102,221 To X,229
Wait 5
Ink 1 : Bar X,221 To X+2,229
Wait 5
Ink 0 : Bar X+2,221 To 190,229
X2=(185-X)/5
Gosub HG
Colour(C),R+G+B
Goto G1
B1:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If Y<220 Then Goto CH
If X<200 Then Goto B1
If X>275 Then Goto B1
If Y>230 Then Goto CH
Ink 0 : Bar 198,221 To X,229
Wait 5
Ink 1 : Bar X,221 To X+2,229
Wait 5
Ink 0 : Bar X+2,221 To 280,229
X3=(275-X)/5
Gosub HB
Colour(C),R+G+B
Goto B1
Return
HR:
If X1=0 Then R=$0 : R$="0"
If X1=1 Then R=$100 : R$="1"
If X1=2 Then R=$200 : R$="2"
If X1=3 Then R=$300 : R$="3"
If X1=4 Then R=$400 : R$="4"
If X1=5 Then R=$500 : R$="5"
If X1=6 Then R=$600 : R$="6"
If X1=7 Then R=$700 : R$="7"
If X1=8 Then R=$800 : R$="8"
If X1=9 Then R=$A00 : R$="A"
If X1=10 Then R=$B00 : R$="B"
If X1=11 Then R=$C00 : R$="C"
If X1=12 Then R=$D00 : R$="D"
If X1=13 Then R=$E00 : R$="E"
If X1=14 Then R=$F00 : R$="F"
Locate 12,26 : Print R$
Return
HG:
If X2=0 Then G=$0 : G$="0"
If X2=1 Then G=$10 : G$="1"
If X2=2 Then G=$20 : G$="2"
If X2=3 Then G=$30 : G$="3"
If X2=4 Then G=$40 : G$="4"
If X2=5 Then G=$50 : G$="5"
If X2=6 Then G=$60 : G$="6"
If X2=7 Then G=$70 : G$="7"
If X2=8 Then G=$80 : G$="8"
If X2=9 Then G=$A0 : G$="A"
If X2=10 Then G=$B0 : G$="B"
If X2=11 Then G=$C0 : G$="C"
If X2=12 Then G=$D0 : G$="D"
If X2=13 Then G=$E0 : G$="E"
If X2=14 Then G=$F0 : G$="F"
Locate 13,26 : Print G$
Return
HB:
If X3=0 Then B=$0 : B$="0"
If X3=1 Then B=$1 : B$="1"
If X3=2 Then B=$2 : B$="2"
If X3=3 Then B=$3 : B$="3"
If X3=4 Then B=$4 : B$="4"
If X3=5 Then B=$5 : B$="5"
If X3=6 Then B=$6 : B$="6"
If X3=7 Then B=$7 : B$="7"
If X3=8 Then B=$8 : B$="8"
If X3=9 Then B=$A : B$="A"
If X3=10 Then B=$B : B$="B"
If X3=11 Then B=$C : B$="C"
If X3=12 Then B=$D : B$="D"
If X3=13 Then B=$E : B$="E"
If X3=14 Then B=$F : B$="F"
Locate 14,26 : Print B$
Return